package com.factory.iamp.service;

import com.factory.iamp.pojo.User;
import com.factory.iamp.pojo.UserList;
import com.factory.iamp.pojo.UserLogin;
import com.factory.iamp.pojo.UserRegister;
import com.factory.iamp.utils.helper.PageHelper;
import org.springframework.web.multipart.MultipartFile;

import java.util.List;

public interface UserService {
    int Count();

    int CountLine(int line);

    int QueryCount(String QueryStr);

    int findCount(String name);

    int ToDoOrderNums(String uid);

    int ToDoOrderNumsLine(String uid, int line);

    int CreateOrderNums(String uid);

    int CreateOrderNumsLine(String uid, int line);

    int RelateOrderNums(String uid);

    int RelateOrderNumsLine(String uid, int line);

    List<UserList> ListPaged(PageHelper data);

    List<UserList> QueryListPaged(PageHelper data, String QueryStr);

    List<UserList> findListPaged(PageHelper data, String name);

    User findById(String uid);

    String Login(UserLogin data);

    String Register(UserRegister data);

    String uploadAvatar(String uid, MultipartFile file) throws Throwable;

    String uploadSignImg(String uid, MultipartFile file) throws Throwable;

    void Logout(User user);

    void resetPassword(User user);

    void changePassword(User user, String newPassword);

    void deleteUser(String uid);
}
